package HomeWork;

public class SeasonTest {
    public static void main(String[] args) {
        Seasons[] seasons= HomeWork.Seasons.values();
        for (int i = 0; i < seasons.length ; i++) {
            System.out.println(seasons[i]);
            System.out.println(seasons[i].getSeasonName()+" , "+seasons[i].getTemperature());
        }

        Seasons s=Seasons.WINTER;
        switch (s){
            case SPRING:
                System.out.println("Spring");
                break;
            case SUMMER:
                System.out.println("Summer");
                break;
            case AUTUMN:
                System.out.println("Autumn");
                break;
            case WINTER:
                System.out.println("Winter");
                break;
        }

    }


}
